/**********************************************************************/
#ifndef CHATCLIENT_H
#define CHATCLIENT_H

/**********************************************************************/
#include <QTcpSocket>

/**********************************************************************/
class ChatClient : public QTcpSocket
{
  Q_OBJECT;

  public:
    void setReady(int);
    void setNickname(QString);
    void setIpAddress(QString);
    QString getNickname();
    QString getIpAddress();

  private:
    QString nickname;
    QString ipAddress;

  private slots:
    void readData();

  signals:
    void error(QString);
    void dataReceived(ChatClient *);
};

/**********************************************************************/
#endif // CHATCLIENT_H
